# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=kernel-hardening-checker
pkgver=0.6.6
pkgrel=1
pkgdesc="A tool for checking the security hardening options of the Linux kernel"
options="!check" # no test suite
url="https://github.com/a13xp0p0v/kernel-hardening-checker"
arch="all"
license="GPL-3.0-or-later"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
provides="kconfig-hardened-check=$pkgver-r$pkgrel" # Backwards compatibility
source="$pkgname-$pkgver.tar.gz::https://github.com/a13xp0p0v/kernel-hardening-checker/archive/v$pkgver.tar.gz"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
1c8b71fe5c3befe3e4a76b3a840fe0c057ff334a74c82648134189d95e54c7b5b36fdfef9689d8fa9d1d5afe6c0e296472d244295f3dd18124d815f8dcd75ef8  kernel-hardening-checker-0.6.6.tar.gz
"
